//
//    Copyright (C) 2012  OinkStudio
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
package game;

import java.util.Random;

public class RuleUpDownWard extends Rule {
	public RuleUpDownWard(String ruleName, int priority) {
		super("UpDownWard", 8);
		// TODO Auto-generated constructor stub
	}

	Random random = new Random();

	@Override
	public void check(int row, int column, Game game) {
		// TODO Auto-generated method stub
		if (random.nextBoolean()) {
			RuleUpward auxUp = new RuleUpward("UpwardRule", 0);
			auxUp.check(row, column, game);
		} else {
			RuleDownward auxDown = new RuleDownward("DownwardRule", 0);
			auxDown.check(row, column, game);
		}
	}

}
